package com.hey.service02.controller;

import com.hey.service02.entity.Testx;
import com.hey.service02.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Flux;

import java.util.List;

@RestController
public class TestController {

    @Autowired
    UserService userService;

    @GetMapping("list")
    public Flux<List<Testx>> findAll(){
        return userService.findAll();
    }
}
